package com.duanyf.wiki.service;

import com.duanyf.wiki.domain.Demo;
import com.duanyf.wiki.mapper.DemoMapper;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * @Description:
 * @Author: duanyf
 * @DateTime: 2022/9/16 0016 15:27
 */
@Service
public class DemoService {

  //使用@Autowired会报错但是运行应该没有问题
  @Resource
  private DemoMapper demoMapper;

  public List<Demo> list(){
    return demoMapper.selectByExample(null);
  }
}
